<%@ page contentType="text/html"%>
<%@ include file="/jsp/admin_header.jsp"%>
<%@ include file="/jsp/admin_left_menu.jsp"%>
<!--  
      Autore: Giorgio Vitale
-->
<H1>Fabbriche</H1>

<%@ page import="it.dei.unipd.healthservice.resource.*"%>
<%@ page import="java.util.*" %>
<% List<Fabbrica> fabbriche = (List<Fabbrica>)request.getAttribute("fabbriche");
	if (fabbriche==null)
		fabbriche = new ArrayList<Fabbrica>();
%>
<table class="corpo">
	<thead>
		<tr>
			<th>Login</th>
			<th>Stato</th>
			<th>Provincia</th>
			<th>Citt&agrave;</th>
			<th>CAP</th>
			<th>Indirizzo</th>
		</tr>
	</thead>	
	<tbody>
<% for (Fabbrica f : fabbriche) {%>
	<tr><td><a href="view_fabbriche?dettagli=<%= f.getLogin() %>"><%= f.getLogin() %></a>&nbsp; </td>
		<td><%= f.getStato() %>&nbsp; </td>
		<td><%= f.getProvincia() %>&nbsp; </td>
		<td><%= f.getCitta() %>&nbsp; </td>
		<td><%= f.getCap() %>&nbsp; </td>
		<td><%= f.getIndirizzo() %>&nbsp; </td>
		</tr>
<% } %>	
	</tbody>
</table>
<% String err = (String)request.getAttribute("errore");
	if (err!=null){%>
<%= err %>
<%} //err !=null%>
<br>

<jsp:include page="/jsp/admin_footer.jsp" flush="true" />

</BODY>
</HTML>